<template>
  <div>
    <h3>欢迎！{{userName}}大人</h3>
  </div>
</template>

<script>

export default {
  name: "WelcomeView",
  data() {
    return {
      ruleForm: {
        userName: '',
        password: ''
      },
    };
  },
  methods: {
    showUserName(){
      this.userName = sessionStorage.getItem("userName");
    }
  },
  created() {
    this.showUserName();
  }
}
</script>